//
//  Department.h
//  Contacts
//
//  Created by 李 雷川 on 14-7-18.
//  Copyright (c) 2014年 李 雷川. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Department : NSObject{
    NSInteger  ID;
    NSString  *name;
    NSInteger sort;
    NSArray   *contacts;
}
@property(nonatomic, assign) NSInteger  ID;
@property(nonatomic, strong) NSString  *name;
@property(nonatomic, strong)  NSArray   *contacts;
@property(nonatomic, assign)    NSInteger sort;

+(BOOL)saveDepartment:(Department *)department;

+(BOOL)updateDepartment:(Department *)department;

+(BOOL)saveDepartments:(NSArray *)departments;

+(BOOL)deleteDepartment:(Department *)department;

+(BOOL)updateDepartments:(NSArray *)departments;

+(NSArray *)getDepartments;
@end
